using System;
using System.Data;
using System.Linq;
using SystemFramework.NewCommon;
using System.Collections.Generic;

namespace Deliveryroomstatusbulletin.EntityData
{
    //*****************************************************************************
    //  文件名 DeliveryroomstatusbulletinData.cs
    //*****************************************************************************
    /// <summary>
    /// 数据库表 H_DELIVERYROOMSTATUSBULLETIN 实体
    /// 主键 INHOSID
    /// </summary>
    /// <remark>
    /// 该表有7个字段
    /// 编制：简易代码生成器
    /// 时间：2013-03-15 09:32:38
    /// </remark>
    [SerializableAttribute]
    [TableMap("H_DELIVERYROOMSTATUSBULLETIN", "INHOSID")]
    public class DeliveryroomstatusbulletinData : EntityBase
    {
        protected string inhosid = string.Empty;//住院号
        protected string bedid = string.Empty;//床号
        protected string name = string.Empty;//病人姓名
        protected string goods = null;//所需物品
        protected int childbirthstate = 1; //分娩状态
        protected string statecaption1;//分娩状态说明1
        protected string statecaption2;//分娩状态说明2
        protected string statecaption3;//分娩状态说明3
        protected int alertstatus = 0; //提示状态
        //protected int callstatus = 0;
        
       
        
 
        public DeliveryroomstatusbulletinData() : base(){}
        
        public override bool Validate()
        {
            bool returnValue = base.Validate();

            //扩展自定义验证

            return returnValue;
        }

        public override string ToString()
        {
            //返回表名
            return "H_DELIVERYROOMSTATUSBULLETIN";
        }

        ///<summary>
        ///H_DELIVERYROOMSTATUSBULLETIN.INHOSID，，IsPrimaryKey=true
        ///</summary>
        [ColumnMap("INHOSID", "H_DELIVERYROOMSTATUSBULLETIN", DbType.String, false, "", 12)]
        public string Inhosid
        {
            get { return inhosid; }
            set
            {
                if (inhosid != value)
                {
                    inhosid = value;

                    if (!_isInitalize && EditState == EntityState.Unchange)
                    {
                        EditState = EntityState.Changed;
                    }
                }
            }
        }

        ///<summary>
        ///H_DELIVERYROOMSTATUSBULLETIN.BEDID，，IsPrimaryKey=false
        ///</summary>
        [ColumnMap("BEDID", "H_DELIVERYROOMSTATUSBULLETIN", DbType.String, false, "", 10)]
        public string Bedid
        {
            get { return bedid; }
            set
            {
                if (bedid != value)
                {
                    bedid = value;

                    if (!_isInitalize && EditState == EntityState.Unchange)
                    {
                        EditState = EntityState.Changed;
                    }
                }
            }
        }

        ///<summary>
        ///H_DELIVERYROOMSTATUSBULLETIN.NAME，，IsPrimaryKey=false
        ///</summary>
        [ColumnMap("NAME", "H_DELIVERYROOMSTATUSBULLETIN", DbType.String, false, "", 20)]
        public string Name
        {
            get { return name; }
            set
            {
                if (name != value)
                {
                    name = value;

                    if (!_isInitalize && EditState == EntityState.Unchange)
                    {
                        EditState = EntityState.Changed;
                    }
                }
            }
        }

        ///<summary>
        ///H_DELIVERYROOMSTATUSBULLETIN.GOODS，，IsPrimaryKey=false
        ///</summary>
        [ColumnMap("GOODS", "H_DELIVERYROOMSTATUSBULLETIN", DbType.String, true, "", 100)]
        public string Goods
        {
            get { return goods; }
            set
            {
                if (goods != value)
                {
                    goods = value;

                    if (!_isInitalize && EditState == EntityState.Unchange)
                    {
                        EditState = EntityState.Changed;
                    }
                }
            }
        }

        ///<summary>
        ///H_DELIVERYROOMSTATUSBULLETIN.CHILDBIRTHSTATE，，IsPrimaryKey=false
        ///</summary>
        [ColumnMap("CHILDBIRTHSTATE", "H_DELIVERYROOMSTATUSBULLETIN", DbType.Int32, false, "", 4)]
        public int Childbirthstate
        {
            get { return childbirthstate; }
            set
            {
                if (childbirthstate != value)
                {
                    childbirthstate = value;

                    if (!_isInitalize && EditState == EntityState.Unchange)
                    {
                        EditState = EntityState.Changed;
                    }
                }
            }
        }

        ///<summary>
        ///H_DELIVERYROOMSTATUSBULLETIN.STATEcaption1，，IsPrimaryKey=false
        ///</summary>
        [ColumnMap("STATEcaption1 ", "H_DELIVERYROOMSTATUSBULLETIN", DbType.String, false, "", 50)]
        public string STATEcaption1
        {
            get { return statecaption1; }
            set
            {
                if (statecaption1 != value)
                {
                    statecaption1 = value;

                    if (!_isInitalize && EditState == EntityState.Unchange)
                    {
                        EditState = EntityState.Changed;
                    }
                }
            }
        }

        ///<summary>
        ///H_DELIVERYROOMSTATUSBULLETIN.STATEcaption2，，IsPrimaryKey=false
        ///</summary>
        [ColumnMap("STATEcaption2 ", "H_DELIVERYROOMSTATUSBULLETIN", DbType.String, false, "", 50)]
        public string STATEcaption2
        {
            get { return statecaption2; }
            set
            {
                if (statecaption2 != value)
                {
                    statecaption2 = value;

                    if (!_isInitalize && EditState == EntityState.Unchange)
                    {
                        EditState = EntityState.Changed;
                    }
                }
            }
        }

        ///<summary>
        ///H_DELIVERYROOMSTATUSBULLETIN.STATEcaption2，，IsPrimaryKey=false
        ///</summary>
        [ColumnMap("STATEcaption3 ", "H_DELIVERYROOMSTATUSBULLETIN", DbType.String, false, "", 50)]
        public string STATEcaption3
        {
            get { return statecaption3; }
            set
            {
                if (statecaption3 != value)
                {
                    statecaption3 = value;

                    if (!_isInitalize && EditState == EntityState.Unchange)
                    {
                        EditState = EntityState.Changed;
                    }
                }
            }
        }


        ///<summary>
        ///H_DELIVERYROOMSTATUSBULLETIN.ALERTSTATUS，，IsPrimaryKey=false
        ///</summary>
        [ColumnMap("ALERTSTATUS", "H_DELIVERYROOMSTATUSBULLETIN", DbType.Int32, false, "", 4)]
        public int Alertstatus
        {
            get { return alertstatus; }
            set
            {
                if (alertstatus != value)
                {
                    alertstatus = value;

                    if (!_isInitalize && EditState == EntityState.Unchange)
                    {
                        EditState = EntityState.Changed;
                    }
                }
            }
        }
        
       
        
        /////<summary>
        /////H_DELIVERYROOMSTATUSBULLETIN.CALLSTATUS，，IsPrimaryKey=false
        /////</summary>
        //[ColumnMap("CALLSTATUS", "H_DELIVERYROOMSTATUSBULLETIN", DbType.Int32, false, "", 4)]
        //public int Callstatus
        //{
        //    get { return callstatus; }
        //    set
        //    {
        //        if (callstatus != value)
        //        {
        //            callstatus = value;

        //            if (!_isInitalize && EditState == EntityState.Unchange)
        //            {
        //                EditState = EntityState.Changed;
        //            }
        //        }
        //    }
        //}
        
        
        
        
        
        
        
        
    
        #region 自定义字段
        
        /*
        ///<summary>
        ///表名.字段名，别名
        ///</summary>
        [ColumnMap("字段名", "表名", "别名")]
        public int? CZ { get; set; }
        */
        
        #endregion 自定义字段
    }
}
